package com.tongzhan.entity.party;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 社情民意
 * Create By Lvan on 2020/7/29
 */
@TableDoc(table = "t_people_opinion",desc = "社情民意")
@Data
@Document(collection = "t_people_opinion")
public class PeopleOpinion extends BaseModel {

    @PrimaryKey
    @ColumnDoc("主键id")
    private String id;

    @ColumnDoc("标题")
    private String title;//标题

    @ColumnDoc("图片地址")
    private String url;//图片地址

    @ColumnDoc("社情民意内容")
    private String conditions_content;//社情民意内容

    @ColumnDoc("上报时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//上报时间

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    @ColumnDoc("添加时间")
    private Date addTime;//添加时间

    @ColumnDoc("删除")
    private Integer is_del;//删除

    @ColumnDoc("类型")
    private Integer type;//类型 0是统战部 1是党派 2是侨台 3是乡贤

    @ColumnDoc("街道code")
    private String streetCode;

    @ColumnDoc("村社区")
    private String villageCode;//村社区

}
